<?php

	namespace Midi;

	function autoload($class) {
		$file = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, ltrim($class, '\\')) . '.php';
		
		if (is_file($file)) {
			require_once $file;
		}
	}
	
	spl_autoload_register('\Midi\autoload');

?>